Checking an application file | Tarantool
Reference Tooling tt CLI utility Commands Checking an application file

Checking an application file

$ tt check {INSTANCE | APPLICATION[:APP_INSTANCE]}

tt check checks the specified Tarantool application or instance for syntax errors.

tt searches for APP_FILE inside the instances_enabled directory specified in the tt configuration file. APP_FILE can be:

  • the name of an application file without the .lua extension.
  • the name of a directory containing the init.lua file. In this case, init.lua is checked.

  • Check the syntax of the app.lua file from the instances_enabled directory:

    $ tt check app
    
  • Check the syntax of the init.lua file from the instance1/ directory inside instances_enabled:

    $ tt check instance1
    

  • Check all source files of the application stored in the app/ directory inside instances_enabled in accordance with the instances configuration:

    $ tt check app
    
  • Check the source of the master instance of the application stored in the app/ directory inside instances_enabled:

    $ tt check app:master
    
Found what you were looking for?
Feedback